package com.juli.school.app.controller.common;

import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.juli.school.dao.entity.Property;
import com.juli.school.service.impl.PropertyService;
import com.juli.school.utils.core.model.CommonResp;
import com.juli.school.utils.core.model.ListResp;

/**
 * @Description: 系统参数控制器
 * @author: wjp
 * @date: 2018年2月7日下午9:29:49
 */
@Controller
@RequestMapping("property")
public class PropertyController {

	@Resource
	PropertyService propertyService;

	/**
	 * @Description: 根据PropertyKey参数标识取得集合，status状态：若为空则默认是启用
	 * @author: wjp
	 * @date: 2018年2月7日下午9:36:10
	 */
	@RequestMapping("getKeyList")
	@ResponseBody
	public CommonResp<ListResp<Property>> getKeyList(Property p) {
		return propertyService.getlist(p);
	}
}
